<script setup>
import { useRoute } from 'vue-router'
import Tarbar from './components/tabbar/tarbar.vue'
import isLoading from '@/components/loading/loading.vue'
// 隐藏tabbar
const route = useRoute()
</script>

<template>
  <div class="app">
    <router-view v-slot="props">
      <KeepAlive include="home">
        <component :is="props.Component" />
      </KeepAlive>
    </router-view>

    <Tarbar v-if="!route.meta.hidden" />
    <isLoading />
  </div>
</template>

<style lang="less" scoped>
.app {
}
</style>
